#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QNetworkAccessManager>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_sendButton_clicked();
    void get_convo(QNetworkReply*);
    void get_answer();
    void get_event();

private:
    Ui::Widget *ui;
    QNetworkAccessManager* client;
    QNetworkReply* answer_reply;
    QString app_id;
    QString api_key;
    QString convo_id;
};
#endif // WIDGET_H
